package com.lhd.mapper;

import com.github.pagehelper.Page;
import com.lhd.pojo.Good;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * @author liuhd
 * @create 2024/10/8 14:55
 **/

@Mapper
public interface GoodMapper {
    List<Good> getAll();

    void getById(@Param("gid") Integer id);

    Page<Good> getWithCondition(Good good);

    void update(Good good);

    void add(Good good);

    void remove(Integer id);
}
